home *** CD-ROM | disk | FTP | other *** search
- Path: theory.lcs.mit.edu!wald
- From: wald@theory.lcs.mit.edu (David Wald)
- Newsgroups: comp.lang.c++
- Subject: Re: A garbage collection problem in C++
- Date: 16 Mar 1996 14:43:05 GMT
- Organization: Theory of Computation, LCS, MIT
- Message-ID: <WALD.96Mar16094305@woodpecker.lcs.mit.edu>
- References: <4ic3vb$k0@mo6.rc.tudelft.nl> <4ic43s$k0@mo6.rc.tudelft.nl>
- NNTP-Posting-Host: woodpecker.lcs.mit.edu
- In-reply-to: Ejo Schrama's message of 15 Mar 1996 15:58:52 GMT
-
- In article <4ic43s$k0@mo6.rc.tudelft.nl> Ejo Schrama
- <schrama@geo.tudelft.nl> writes:
- >the following code shows that the delete[] operator
- >will only treat the first argument as an array, the second argument
- >is not. It sounds like a easter-egg....
- ...
- > delete[] a,b;
- ...
-
- What do you mean "second argument"? It looks like that statement should
- parse as "(delete[] a),b;", so the value of b is computed and discarded
- without ever being shown to delete[].
-
- -David
- --
- ============================================================================
- David Wald http://theory.lcs.mit.edu/~wald/ wald@theory.lcs.mit.edu
- ============================================================================
-